package cn.sdormitory.report.service.impl;

import cn.sdormitory.report.dao.ClassHygieneStaDao;
import cn.sdormitory.report.dao.HygieneStatisticsDao;
import cn.sdormitory.report.service.ClassHygieneStaService;
import cn.sdormitory.report.service.HygieneStatisticsService;
import cn.sdormitory.report.vo.ClassHygieneStaVO;
import cn.sdormitory.report.vo.HygieneReportVo;
import cn.sdormitory.report.vo.HygieneStatisticsVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @创建人：zhouyang
 * @创建时间：2022/1/19 12:26
 * @version：V2.0
 */
@Slf4j
@Service("classHygieneStatisticsService")
public class ClassHygieneStaServiceImpl extends ServiceImpl<ClassHygieneStaDao, ClassHygieneStaVO> implements ClassHygieneStaService {
    @Resource
    ClassHygieneStaDao classHygieneStaDao;
    @Override
    public List<ClassHygieneStaVO> getClassHygieneStaList(String inYearMonth,String classDeptId, int pageNum, int pageSize) {
        int currIndex=(pageNum-1)*pageSize;
        return classHygieneStaDao.getClassHygieneStaList(inYearMonth,classDeptId,currIndex,pageSize);
    }

    @Override
    public Long getClassHygieneStaListCount(String inYearMonth,String classDeptId) {
        return classHygieneStaDao.getClassHygieneStaListCount(inYearMonth,classDeptId);
    }

    @Override
    public List<ClassHygieneStaVO> getClassHygieneStaListExport(String inYearMonth, String classDeptId) {
        return classHygieneStaDao.getClassHygieneStaListExport(inYearMonth,classDeptId);
    }


}
